package com.igeek.javase.ch03;

/*
 *@author wangpeng
 *2023/7/12 19:14
 *@description 封装一个皇帝类测试
 */
public class EmpireTest {
    public static void main(String[] args) {
        Empire emp1 = new Empire();
        emp1.getName();
        emp1.getTime();
        emp1.getGrade();
        emp1.getDescripe();

        emp1.setName("李雷");
        emp1.setTime(2023);
        emp1.setGrade(100);
        emp1.setDescripe("实施仁政、依法治国、以民为本");
        emp1.show();;
    }
}
